package app;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.junit.Test;

public class CategoryText {
	
	@Test
	public void testGetCategoryMap() {
		App app = new App();
		Category category = new Category(app.getApp());
		Map<String, Integer> categoryMap = category.getCategoryMap();
		/*for (String string : categoryMap.keySet()) {
			System.out.println(string);
		}*/
	}
	
	@Test
	public void testGetCategoryCode() {
		List<String> domainList = new ArrayList<String>();
		domainList.add("56.qq.com");
		domainList.add("feixin.qq.com");
		App app = new App();
		Category category = new Category(app.getApp());
		for (int i = 0; i < 3; i++) {
		String code = category.getCategoryCode(domainList);
		System.out.println(code);
		}
	}

}
